#include<stdio.h>
int main() {
	int n = 0;
	int arr[n];
	printf("请输入数组的元素个数:\n");
	scanf("%d", &n);
	printf("请输入数组元素\n");
	for (int i = 0; i < n; i++) {
		scanf("%d", &arr[i]);
	}
	int arr1[n];
	int j = 0;
	for (int i = 0; i < n; i += 2) {
		arr1[j++] = arr[i];
	}
	for (int i = 1; i < n; i += 2) {
		arr1[j++] = arr[i];
	}
	for (int i = 0; i < n; i++) {
		printf("%d ", arr1[i]);
	}
	return 0;
}
